---
title: Delete From a Table
sidebarTitle: Delete From a Table
---

## Description

The `runQuery()` function executes a query given as its argument directly in MindsDB.

## Syntax

Here is the syntax:

```
const query = `DELETE FROM datasource_name.table_name WHERE …`;
const queryResult = await MindsDB.SQL.runQuery(query);
```
